<%@ page language="java" contentType="text/html; charset=UTF-8"    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec"    uri="http://www.springframework.org/security/tags"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<sec:authentication property="principal" var="currentPrincipal" scope="page" />

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<!DOCTYPE html>
<html lang="zh-CN">
        
<p class="hint-message" style="margin: 20px 0 20px 0;"><span style="color:#ce082b">提醒</span>：以下为该用户可管理的数据权限</p>
<table class="table table-hover ms-table">
  <thead>
      <tr>
        <th>公司代码</th>
        <th>公司名称</th>
        <th>描述</th>
      </tr>
  </thead>
  <tbody>
    <c:forEach items="${suppliers}" var="supplier">
      <tr>
        <td>${supplier.code}</td>
        <td>${supplier.name}</td>
        <td>${supplier.type}</td>
      </tr>
    </c:forEach>
  </tbody>
  <tfoot>
    <tr>
        <td colspan="3" class="no-vertical-padding">
            <div class="pull-left">
                <jsp:include page="/WEB-INF/include/ajax-page.jsp">
                    <jsp:param name="url" value="${ctx.host}/branch-users/${user.id}/suppliers"/>
                </jsp:include>
            </div>
            <div class="pull-right">
                
            </div>
        </td>
    </tr>
  </tfoot>
</table>
       
  <%@ include file="/WEB-INF/include/script.jsp"%>
